<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			#box{
				height: 100px;
				background-color: black;
			}
			#box2{
				margin-top: 50px;
				height: 200px;
				background-color: orange;
			}
		</style>
	</head>
	<body>
		<div id="box">
			
		</div>
		<div id="box2">
			
		</div>
		<script type="text/javascript">
			var oBox1 = document.getElementById("box")
			var oBox2 = document.getElementById("box2")
			oBox1.onclick = function  (ev) {
				var ev = event || ev
				console.log("X:",ev.clientX,"y:",ev.clientY)
			}
		</script>
	</body>
</html>
